import request from '@/utils/request'

// 查询税源地各个账户余额列表
export function listTransferAccountMerchantBalance(query) {
  return request({
    url: '/transferAccount/transferAccountMerchantBalance/list',
    method: 'get',
    params: query
  })
}

// 查询税源地各个账户余额详细
export function getTransferAccountMerchantBalance(merchantBalanceId) {
  return request({
    url: '/transferAccount/transferAccountMerchantBalance/' + merchantBalanceId,
    method: 'get'
  })
}

// 新增税源地各个账户余额

export function addTransferAccountMerchantBalance(data) {
  return request({
    url: '/transferAccount/transferAccountMerchantBalance',
    method: 'post',
    data: data
  })
}

// 修改税源地各个账户余额

export function updateTransferAccountMerchantBalance(data) {
  return request({
    url: '/transferAccount/transferAccountMerchantBalance',
    method: 'put',
    data: data
  })
}

// 删除税源地各个账户余额

export function delTransferAccountMerchantBalance(merchantBalanceId) {
  return request({
    url: '/transferAccount/transferAccountMerchantBalance/' + merchantBalanceId,
    method: 'delete'
  })
}



export function sumAccountBalance(data) {
  return request({
    url: '/transferAccount/transferAccountMerchantBalance/sumAccountBalance',
    method: 'get',
    params: data
  })
}
